package com.grgbanking.it.system.entity;

import com.grgbanking.it.external.entity.Supplier;


/**
 * 传到微信的用户结构
 * 
 * @author pgwei
 * 
 */
public class WXUser {
	private String userid;
	private String name;
	private Integer[] department;
	private String position;
	private String mobile;
	private String gender;
	private String tel;
	private String email;
	private String weixinid;
	private String extattr;
	private Integer status;
	
	public WXUser(){
	}
	
	public WXUser(User user,Integer wxDepartmentId){
		this.setUserid(user.getUserId());
		this.setName(user.getUserName());
		this.setDepartment(new Integer[]{wxDepartmentId});
//		this.setPosition(position);
		this.setMobile(user.getMobilNo());
		this.setGender(user.getSex());
		this.setTel(user.getTelNoDept());
		this.setEmail(user.getEmail());
//		this.setWeixinid(weixinid);
//		this.setExtattr(extattr);
	}
	
	public WXUser(Supplier supplier){
		this.setUserid(supplier.getSapid().toString());
		this.setName(supplier.getName());
		this.setDepartment(new Integer[]{1998});
		this.setMobile(supplier.getLink());
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	

	public Integer[] getDepartment() {
		return department;
	}

	public void setDepartment(Integer[] department) {
		this.department = department;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getWeixinid() {
		return weixinid;
	}

	public void setWeixinid(String weixinid) {
		this.weixinid = weixinid;
	}

	public String getExtattr() {
		return extattr;
	}

	public void setExtattr(String extattr) {
		this.extattr = extattr;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}
